<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Imgeditor.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	 <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-2.0.0.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-ui"></script>
    <link href="${pageContext.request.contextPath }/css/bootstrap-combined.min.css" rel="stylesheet" media="screen">
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>

  </head>
  
  <body>
		<form action="${pageContext.request.contextPath }/admin/img_ImgUpdate.action" method="post" enctype="multipart/form-data">
				
				<h1 align="center">编辑图片</h1>
				<table class="table">
					<tr>
						<s:hidden name="pi.id"></s:hidden>
					</tr>
					<tr>
						<td>图片的名字</td>
						<td><s:textfield name="pi.name"/></td>
					</tr>
					<tr>
						<td>所对应的图片ps:暂不支持修改图片</td>
						<td><img width="200px" height="200px" src="${pageContext.request.contextPath }/upload/img/<s:property value='pi.path'/>"></td>
						<td>图片名称：<s:textfield name="pi.path"/></td>
					</tr>
					<tr>
						<td>该图片的描述</td>
						<td><s:textfield name="pi.content"/></td>
					</tr>
					<tr>
						<td><input type="submit" value="保存"/></td>
					</tr>
				
				</table>
			</form>
  </body>
</html>
